package com.soft.javase.day02.practice.game;

/**
 * @author yzg
 * @desc TODO
 * @date 2025/4/16
 */
public class Equip {
    private String name;
    private int level;
    private String color;
    private String kind;
    private int power;
    private int defence;

    public Equip(String name, int level, String color, String kind, int power, int defence) {
        this.name = name;
        this.level = level;
        this.color = color;
        this.kind = kind;
        this.power = power;
        this.defence = defence;
    }

    // 显示装备信息
    public void show() {
        System.out.println("装备: " + name + " | 等级: " + level + " | 颜色: " + color +
                " | 类型: " + kind + " | 攻击力: " + power + " | 防御力: " + defence);
    }


    public String getName() { return name; }
    public int getLevel() { return level; }
    public String getColor() { return color; }
    public String getKind() { return kind; }
    public int getPower() { return power; }
    public int getDefence() { return defence; }

}
